﻿using System.Collections.ObjectModel;

namespace FluentViewModel.Demo.Configuration
{
    public sealed class DemoViewModelConfiguration : ConfigureViewModel<IDemoViewModel>
    {
        public DemoViewModelConfiguration()
        {
            Validator<DemoViewModelValidator>();
            Controller<IViewModelController>();
            Transient();
            Notify(x => x.Title);
            Notify(x => x.Text);
            Notify(x => x.Counter);
            Command(x => x.Command);
            Initialize(x => x.List, () => new ObservableCollection<string>());
        }
    }
}